extend heap in realloc