f2fs: avoid infinite loop in f2fs_alloc_nid