Heat the oil in a nonstick skillet over medium heat.
Crack egg into skillet, season with salt and pepper, and top with sliced mozzarella. Cook until egg is set to your liking, and cheese is melted (about 3 minutes).
Toast bread and assemble sandwich with tomato slices, basil, balsamic vinegar and egg.