How is respiration an unbalanced equation
The ATP is not actually produced from the respiration. It comes from ADP and free phosphate ions.

The production of ATP in cellular respiration happens in all parts of a series of chain reactions, and you can read more about those here: https://en.wikipedia.org/wiki/Cellular_respiration#Aerobic_respiration