Implement WriteFileChunk