State tax filing

You do not get to deduct all the withholding ... only the taxes paid to IL on the 2017 return. If you had completed the non resident state first then the program would have moved that amount automatically.  If you didn't then you will need to amend the state return.