Phase transition in nanomagnetite