**writer = get_write_region(bip); reset_region(writer);** should I add "bip->allocated = size " ? code in bb_alloc ();