mm: fix nonuniform page status when writing new file with small buffer