debug check 1, fixed rebalance to incorporate interior nodes