Write updated teams to file