SAN FRANCISCO/NEW YORK, Nov 20 (Reuters) - Hewlett-Packard Co stunned Wall Street by alleging a massive accounting scandal at its British software unit Autonomy and taking an $8.8 billion writedown, the latest in a string of reversals that renewed questions about the competence of the storied company's board and senior managers.