Fix response's write interface.

1. fix response's write method.
2. delete some comments.