modified balance check on buy/sell