Make the changes in the file you imported and then import it again. It will only update the previous created companies. But remeber, your import files should have the company domain name as it is a unique identifier for companies and an emial address for contacts. Without unique identifier, HubSpot will create the duplicate companies.
Hope this helps!
If we were able to answer your query, kindly help the community by marking it as a solution.