REFACTORING: supporting flag about receiving an offset or not.

This is important so we can fix all the specs related to write/binwrite. I've tried to make the change in a lot of ways but all of them look very ugly. So I decided to ask feedback from you that know more the code base. @hedius @enebo

PS: write/binwrite specs need this because ruby doens't truncate the file an offset is given