fixed tell on posix files

Fixed the tell call on POSIX files, accounting for the current buffer.