State tax filing

Well that was wrong ... so file a form  WV/IT-104 R with your payroll department and see if they can fix 2017 for the entire year.  If they cannot fix it then you will have to file a non resident WV return to get the erroneous withholding back. 

https://ttlc.intuit.com/questions/2895760-which-states-have-reciprocal-agreements