The correct balanced equation for photosynthesis is:
6H2O + 6CO2 → C6H12O6 + 6O2
This equation shows that six molecules of water (H2O) and six molecules of carbon dioxide (CO2) are used to produce one molecule of glucose (C6H12O6) and six molecules of oxygen (O2).
So, the first option you listed is the balanced equation.