After you file

The IRS should reject your tax return and then you can correct the 2017 return and e-file again.  You do NOT amend a rejected tax return.