Send shard to file write function