writing to swp block not working