implement block.account_balance function