added all the nvm functions to page_alloc.c