You can book an online train ticket from Banihal to Baramulla by logging into your IRCTC account.