Fixed write() signature
Merge pull request #22 from emanwebdev/patch-1

Fixed write() signature