Added file offset calculation to page allocator.