writing chunks to DFS directory