write method for cursor
Merge pull request #21 from hfaran/cursorwrite

write method for cursor