Mass balance is just a form of mass conservation - whatever you put into the system must be still there.
If you have put 1 mole of H2A into the solution, sum of all forms of the acid - that is undissociated H2A, HA- and A2- is still 1 mole.
Try to write it in the form of equation, using either concentrations or numbers of moles.