added write chunking dictionary to file function