Replaces the file atomically: a crash leaves either the old or the new content.
Future<void> writeAll(String path, List<int> bytes);