util: implements "writefile" gem5 op to export file from guest to host filesystem