Added writing back to disk when a pagedir is dirty, mmap-over-stk and mmap-exit are failing