Updated the Toil balance adjustment code.

This will ensure the balance is correctly updated when the user deletes a toil record, or edits an existing record.