Assert that the write succeeded; also changing `Fprintf` to `Fprint`, because we were not using templating (we should check why no linter complained about this). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>