Linkswift is not malware. Its merely adware that got installed by you. Most firewalls by default do not block adware. If you want a pop up to block everything then set the firewall to ask. Clearly Avast is not at fault here. Linkswift is not malicious. Its just like installing the Ask Toolbar.

http://malwaretips.com/blogs/remove-linkswift-virus/