Write file before running specs

The `autowrite` setting (`:set autowrite`) will kick in if you use `:!` to
run your commands, but not if you use `system()` to run them (e.g. runners
that pipe commands to tmux).

Therefore, we manually call `write` before running specs to handle every
possible case.