Control of mass balance error in a detailed model of surface-subsurface flow interaction