Completed functions required for check_page_alloc()

Modified functions:
 - boot_alloc()
 - mem_init()
 - page_init()
 - page_alloc()
 - page_free()