alloc: fix reallocate_inplace implementation

The returned size is the new real size of the allocation.