fixed hugepage alloc when extending last free block

there was a bug where extending the last block in the heap was performed incorrectly.