bfs: replace inode uid,gid,mode initialization with helper function