The role of atmospheric outflows in the migration of hot Jupiters