Bring a large pot of water to a boil. Generously salt the water and return to a boil. Cook the pasta according to package directions. During the last two minutes of cooking, add the ears of corn. When you drain the pasta, take out the ears of corn and let cool. Quickly rinse the pasta in cool water to stop the cooking, drain well, and turn into a serving bowl.
Remove the corn from the cobs with a knife or a corn stripper.
Add the corn, tomatoes, mozzarella, and half of the basil to the pasta.
In a small container, combine the olive oil, roasted garlic, balsamic vinegar, salt, and pepper and shake to combine. Pour the dressing over the pasta salad and toss well to combine. Taste and adjust seasonings (be generous with the salt). Sprinkle the remaining basil over the top and serve at room temperature.
Notes
This pasta salad can be covered and stored in the fridge for 2 to 3 days.