Beltran files for free agency