If tickets are available book a fresh ticket...Else you can do as below.
1.Carry the original ID and travel explain to TTE regarding the mistake mostly he shall accept.
2.Go to nearest station and ask for any correction possible by the SM and get it attested if feasible.