now releasing write locks on errors in sysfile_write...and progress on dev file