The head of the U.N. nulcear agency says Iran has agreed to allow inspectors access to a military site that the United States alleges is linked to a secret nuclear weapons program .