Writing to Disks

Writing to the disk and index file is successful. Now need to implement
the insert function.