SAN FRANCISCO (Reuters) - California lawmakers rushed to write a bill to give Amazon.com Inc a one-year reprieve from collecting certain sales taxes in exchange for dropping its ballot measure campaign to undo the tax, aides said on Thursday.