Added left_or_write() function to determine if block once merged is the left or right buddy