write the namei file