If you had a refund, then file another extension with the correct SSN. If you paid with the extension, you need to contact the IRS.