fix bugs in checking unreferenced inode and inode links count