Kosher or coarse salt and freshly ground pepper to taste
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 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). Serve at room temperature.