write_buffer compatible for rubyzip 1.1.0 or later

'write_buffer' method was added a argument 'io' in rubyzip 1.1.0.
So I think zip-zip needs this compatible implementation like this request.