Changes in write method

When we make write, we can answer in write too