writeBuffer() changes should fix issues #10/#11

I don't actually have this chip to test, but I had experience the exact same issue when using the W5200. It also didn't do a length check before initiating a transfer.