rewrite buddy_free