Watchdog writes to banks on risky loans