Surface mass balance is the difference between the precipitation (rain and snow) that has accumulated on the upper surfaces of glaciers and ice sheets and what has been lost due to melt,  eventual runoff, and evaporation.
Total mass balance is the difference between total mass gains and total mass losses, which includes ice lost in the lower margins due to calving and thinning from contact with warm ocean waters.