Get a pointer to one of the entries in the index
The values of this entry can be modified (except the path) 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