Get a pointer to one of the entries in the index
This entry can be modified, and the changes will be written back to disk on the next write() call.
The entry should not be freed by the caller.
the position of the entry
a pointer to the entry; NULL if out of bounds