added write() to swift backend
close() on swift files and local cache cleaning