Spain to write off Bolivian debt