write service