Don't call storage.write for dirinstall (#1120206)
The logic got slightly corrupted with the ostree patches. With this fix
you can do:
anaconda --text --dirinstall --kickstart=./path/to/ks.cfg
to get an installed system in /mnt/sysimage/
Related: rhbz#1120206
(cherry picked from commit edb7da857895b59e1b0fceda6bc0320ab3ca50fd)