Add ExternalStorage.writeFile