Determinant of twisted chiral Dirac operator on the lattice