open file with O_TRUNC in Index construction, so it wont append the existing and get messy indices