writing to dir entry