Update: I still need to figure out why it continues to write voxel data when the file is already present.