add write_file function to QcBatchInput