Fix bug in memory allocator that will allocate only half-sized memory block when size is bigger than one page, thus causing collision